package fr.umlv.m2.jee.pmlv.persistence.note;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import fr.umlv.m2.jee.pmlv.persistence.subject.Subject;

@SuppressWarnings("serial")
@Entity
@Table(name="User__Note")
public class UserNote implements Serializable {
	
	@Id
	@GeneratedValue
	@Column(name="userNote_id")
	private long id;

	@Column(name="userNote_uid")
	private String uid;

	@OneToOne
	@JoinColumn(name="subject_id")
	private Subject subject;
	
	@Column(name="userNote_note")
	private Float note;
	
	@Column(name="userNote_year")
	private int year;
	
	@Column(name="userNote_noteTP")
	private Float noteTP;
	
	@Column(name="userNote_noteTD")
	private Float noteTD;
	
	@Column(name="userNote_noteProject")
	private Float noteProject;
	
	@Column(name="userNote_noteExam")
	private Float noteExam;

	public void setId(long id) {
		this.id = id;
	}

	public long getId() {
		return id;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getUid() {
		return uid;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	public Subject getSubject() {
		return subject;
	}
	
	public void setNote(Float note) {
		this.note = note;
	}

	public Float getNote() {
		return note;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getYear() {
		return year;
	}

	public void setNoteTP(Float noteTP) {
		this.noteTP = noteTP;
	}

	public Float getNoteTP() {
		return noteTP;
	}

	public void setNoteTD(Float noteTD) {
		this.noteTD = noteTD;
	}

	public Float getNoteTD() {
		return noteTD;
	}

	public void setNoteProject(Float noteProject) {
		this.noteProject = noteProject;
	}

	public Float getNoteProject() {
		return noteProject;
	}

	public void setNoteExam(Float noteExam) {
		this.noteExam = noteExam;
	}

	public Float getNoteExam() {
		return noteExam;
	}
}
